package com.xinxin.o2o.enums;

/**
 * @author 史鑫鑫
 * @date 2019-08-20 10:19
 */
public enum ProductCategoryStateEnum {
    /**
     * 产品分类操作状态
     */
    SUCCESS(1, "创建成功"),
    INNER_ERROR(-1001, "操作失败"),
    EMPTY_LIST(-1002, "添加数少于1");

    /**
     * 状态码
     */
    private int state;
    /**
     * 信息
     */
    private String stateInfo;

    ProductCategoryStateEnum(int state, String stateInfo) {
        this.state = state;
        this.stateInfo = stateInfo;
    }

    public int getState() {
        return state;
    }

    public String getStateInfo() {
        return stateInfo;
    }
}
